Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Fix #548 by rendering datatype kinds more carefully #702

Merged
merged 1 commit into from
Nov 14, 2017
Merged

Fix #548 by rendering datatype kinds more carefully #702

merged 1 commit into from
Nov 14, 2017

Conversation

RyanGlScott
Copy link
Member

Before, any data type that was loaded from an interface file (i.e., any data type that passes through Haddock.Convert) was displaying utterly wrong kind information, leading to #548. For example, one can see this effect on the mtl Haddocks on Hackage:

mtl-bad

Yuck! That return kind is utterly bogus, given that it also displays the type variables of StateT.

The simplest fix (adopted here) is to only display the return kind. Moreover, since we're dealing with data types here, I opt not to display the return kind if it's * (since that is what it will be by default anyways).

After this change, here is what StateT looks like now:

mtl-good

(Haddock also now appears to render the kind signature of m. I wasn't responsible for making that happen, but it's fortunate that Haddock does this, as it's important to ensure that the same kind information is still presented to the user.)

@alexbiehl
Copy link
Member

alexbiehl commented Nov 14, 2017

Lovely! Thanks @RyanGlScott! Much better now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants